package cn.aitrox.ry.service.anno.enumtype.anno;

public enum AnnoResultStatusEnum {

    NOT_START(0, "未开始"),

    PROCESSING(1, "进行中"),

    SUBMIT(2, "已提交"),

    DISCARD(3, "提交废片");

    private Integer status;

    private String desc;

    AnnoResultStatusEnum(Integer status, String desc) {
        this.status = status;
        this.desc = desc;
    }

    public Integer getStatus() {
        return status;
    }

    public String getDesc() {
        return desc;
    }

    public static AnnoResultStatusEnum getEnumByStatus(Integer status) {
        if (null == status) {
            return null;
        }
        for (AnnoResultStatusEnum statusEnum : AnnoResultStatusEnum.values()) {
            if (statusEnum.getStatus().equals(status)) {
                return statusEnum;
            }
        }
        return null;
    }

}
